﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace XmlDSigEx
{
    class WebRequestDereferencer : IUriDereferencer
    {
        public object DereferenceUri(string uri, System.Xml.XmlDocument context)
        {
            WebRequest request = WebRequest.Create(uri);
            WebResponse response = request.GetResponse();
            return response.GetResponseStream();
        }
    }
}
